package com.example.event;

import org.springframework.context.ApplicationEvent;

/**
 * 继承ApplicationEvent使得该类变成可以被时间监听的内容
 */
public class MyEvent extends ApplicationEvent {
    public String getContent() {
        return content;
    }

    private String content;

    public MyEvent(Object source, String content) {
        super(source);
        this.content = content;
    }

}